package com.im.entity;

public class Link {
	private int id;
	private String text = "";
	private String href = "";
	private String image_url = "";
	private int column_id;
	private int has_childLinks;
	private int parent_link_id;
	private String model_name = "";
	private int is_set_front;
	private int is_here;
	public Link() {
		super();
	}
	public Link(int id, String text, String href,  String image_url, int column_id, int has_childLinks, int parent_link_id, String model_name) {
		super();
		this.id = id;
		this.text = text;
		this.href = href;
		this.image_url = image_url;
		this.column_id = column_id;
		this.has_childLinks = has_childLinks;
		this.parent_link_id = parent_link_id;
		this.model_name = model_name;
	}
	public Link(String text, String href, String image_url, int column_id, int has_childLinks, int parent_link_id, String model_name) {
		super();
		this.text = text;
		this.href = href;
		this.image_url = image_url;
		this.column_id = column_id;
		this.has_childLinks = has_childLinks;
		this.parent_link_id = parent_link_id;
		this.model_name = model_name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getHref() {
		return href;
	}
	public void setHref(String href) {
		this.href = href;
	}
	public String getImage_url() {
		return image_url;
	}
	public void setImage_url(String image_url) {
		this.image_url = image_url;
	}
	public int getColumn_id() {
		return column_id;
	}
	public void setColumn_id(int column_id) {
		this.column_id = column_id;
	}
	public int getHas_childLinks() {
		return has_childLinks;
	}
	public void setHas_childLinks(int has_childLinks) {
		this.has_childLinks = has_childLinks;
	}
	public int getParent_link_id() {
		return parent_link_id;
	}
	public void setParent_link_id(int parent_link_id) {
		this.parent_link_id = parent_link_id;
	}
	public String getModel_name() {
		return model_name;
	}
	public void setModel_name(String model_name) {
		this.model_name = model_name;
	}
	public int getIs_set_front() {
		return is_set_front;
	}
	public void setIs_set_front(int is_set_front) {
		this.is_set_front = is_set_front;
	}
	public int getIs_here() {
		return is_here;
	}
	public void setIs_here(int is_here) {
		this.is_here = is_here;
	}
	public void setSiteHere() {
		this.is_here = 1;
	}
	@Override
	public String toString() {
		return "Link [id=" + id + ", text=" + text + ", href=" + href
				+ ", column_id=" + column_id + "]";
	}
	
}
